import HTMLTestRunner
import time
import unittest

from com.wzh.mile.unit_test.common.webdriver_single import WebDriverSingle
from com.wzh.mile.unit_test.toumile.mile_suite import suite_register

#循环100次 注册用户

# filename = 'c:\\user_reports.html'
# with open(filename, 'wb') as fp:
#     html_runner = HTMLTestRunner.HTMLTestRunner(stream=fp, title='投米乐自动化测试报告', description='主干流程业务覆盖')
#     html_runner.run((suite_register()))
#     time.sleep(5)

for i in range(1000):
    unittest.TextTestRunner().run(suite_register())
    time.sleep(10)
